#!/bin/bash
#打包
npm run uat

#改名
rm -rf coupon
mkdir "coupon"
mv dist/* coupon

#部署
/usr/bin/expect <<-EOF
set timeout 36000
spawn scp -r coupon liberapp@10.132.21.168:/app/saleplatform/web/
expect {
"*password:" { send "Liberty10\n" }
}
expect eof
EOF
